
<div>
        <script src="raphael.js" type="text/javascript" charset="utf-8"></script>
        <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
        <script src="columnbyMovie.js" type="text/javascript" charset="utf-8"></script>
        <style type="text/css" media="screen">
            #holder {
                height: 800px;
                margin: -125px 0 0 -400px;
                width: 1000px;
            }
        </style>
    

    <%@page import="java.util.ArrayList,cs4280.bean.*,java.util.Iterator"%>
   
        <table>

            <thead>
                <th>Movie id</th>
                <th>Name</th>
            </thead>
            <%           ArrayList<Movie> movieinfos =
                                    (ArrayList<Movie>) request.getAttribute("moviesname");
                            Iterator<Movie> itinfo = movieinfos.iterator();
                            while (itinfo.hasNext() != false) {
                                pageContext.setAttribute("movieinfo", (Movie) itinfo.next());
                %>
                <jsp:useBean id="movieinfo" type="cs4280.bean.Movie" scope="page"/>
                <tbody>

                <tr>
                    <td><%=movieinfo.getId()%></td>
                     <td><%=movieinfo.getName()%></td>

                </tr>
                <%}%>
                </tbody>
        </table>


        <table id="column">
            <thead>
                 <%           ArrayList<Movie> moviesname =
                                    (ArrayList<Movie>) request.getAttribute("moviesname");
                            Iterator<Movie> it = moviesname.iterator();
                            while (it.hasNext() != false) {
                                pageContext.setAttribute("moviename", (Movie) it.next());
                %>
                <jsp:useBean id="moviename" type="cs4280.bean.Movie" scope="page"/>


                <th>Movie id <%=moviename.getId()%></th>
                <%}%>

            </thead>
            <tbody>
                <%           ArrayList<Movie> movies =
                                    (ArrayList<Movie>) request.getAttribute("movies");
                            Iterator<Movie> itcount = movies.iterator();
                            while (itcount.hasNext() != false) {
                                pageContext.setAttribute("movie", (Movie) itcount.next());
                %>
                <jsp:useBean id="movie" type="cs4280.bean.Movie" scope="page"/>


                <td><%=movie.getSales()%></td>
                <%}%>

            </tbody>
        </table>
</div>
        <div id="notepad"></div>
    
